<admintpl file="header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('index')}">开奖记录</a></li>
        <li class="active"><a href="{:U('add')}">添加开奖</a></li>
        <li><a href="{:U('automake')}">生成开奖数据</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form" action="{:U('add_post')}">
        <fieldset>
            <div class="control-group">
                <label class="control-label">开奖日期：</label>
                <div class="controls">
                    <input type="text" name="date" value="{:date('Y-m-d')}" class="js-date">
                    <span class="form-required">* &nbsp;&nbsp;</span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">第 * 期：</label>
                <div class="controls">
                    <input type="number" name="qishu" min="1" max="{$total_kai_jiang}" placeholder="请输入 1~{$total_kai_jiang} 的数字">
                    <span class="form-required" style="color: red">* &nbsp;&nbsp;只需要输入 1~{$total_kai_jiang} 的数字即可,程序会自动生成 {:date('Ymd')}*** 期号</span>
                </div>
            </div>

            <!-- 1 -->
            <div class="control-group">
                <label class="control-label">号码 1：</label>
                <div class="controls">
                    <input type="number" name="num_1" value="" min="1" max="12">
                    <span class="form-required">* &nbsp;&nbsp;输入号码 1~12</span>
                </div>
            </div>
            <!-- 2 -->
            <div class="control-group">
                <label class="control-label">号码 2：</label>
                <div class="controls">
                    <input type="number" name="num_2" value="" min="1" max="12">
                    <span class="form-required">* &nbsp;&nbsp;输入号码 1~12</span>
                </div>
            </div>
            <!-- 3 -->
            <div class="control-group">
                <label class="control-label">号码 3：</label>
                <div class="controls">
                    <input type="number" name="num_3" value="" min="1" max="12">
                    <span class="form-required">* &nbsp;&nbsp;输入号码 1~12</span>
                </div>
            </div>
            <!-- 3 -->
            <div class="control-group">
                <label class="control-label">号码 4：</label>
                <div class="controls">
                    <input type="number" name="num_4" value="" min="1" max="12">
                    <span class="form-required">* &nbsp;&nbsp;输入号码 1~12</span>
                </div>
            </div>
            <!-- 3 -->
            <div class="control-group">
                <label class="control-label">号码 5：</label>
                <div class="controls">
                    <input type="number" name="num_5" value="" min="1" max="12">
                    <span class="form-required">* &nbsp;&nbsp;输入号码 1~12</span>
                </div>
            </div>
            <!-- 3 -->
            <div class="control-group">
                <label class="control-label">号码 6：</label>
                <div class="controls">
                    <input type="number" name="num_6" value="" min="1" max="12">
                    <span class="form-required">* &nbsp;&nbsp;输入号码 1~12</span>
                </div>
            </div>
        </fieldset>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
            <a class="btn" href="javascript:history.back(-1);">返回</a>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>